package com.baomihua.demo.config

import com.baomidou.mybatisplus.plugins.PaginationInterceptor
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * plus 配置
 * @author nieqiurong 2017/12/7.
 */
@Configuration
class MybatisPlusConfig {

    /**
     * 启动分页支持
     */
    @Bean
    fun paginationInterceptor():PaginationInterceptor = PaginationInterceptor()

}